<template>
	<view class="item">
		<view class="pic">
			<image src="https://kuaidi2021.oss-cn-hangzhou.aliyuncs.com/attach/2023/02/12/88fb98e41af35daa704c5d0c039c576a.jpg?x-oss-process=image/resize,h_800,w_800"></image>
		</view>
		<view class="main-box">
			<view class="title m-ellipsis">
				<view class="news">全新</view>
				Apple/苹果iPhone支持移动联通电信5G价格美丽价格美丽格美丽价格美丽
			</view>
			<view class="sub">官方首发新品，量不多</view>
			<view class="type">
				<view class="jp">极品精选</view>
				<view class="bt">官方补贴</view>
			</view>
			<view class="mb-bottom">
				<view class="price">¥<text>98</text> <text class="note">/天</text></view>
				<view class="tabs">
					<view class="tab">顺丰包邮</view>
					<!-- <view class="tab">租完归还</view> -->
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
</script>

<style lang="scss">
	.item {
		display: flex;
		margin-top: 32rpx;
		
		
		.pic {
			width: 248rpx;
			height: 248rpx;
			background: #FFFFFF;
			border-radius: 16rpx;
			overflow: hidden;
			position: relative;
			
			.tips {
				position: absolute;
				top: 8rpx;
				left: 8rpx;
				z-index: 2;
				width: 112rpx;
				height: 40rpx;
				line-height: 40rpx;
				border-radius: 8rpx;
				text-align: center;
				font-size: 24rpx;
				font-weight: bold;
				color: #FFFFFF;
				
				&.new {
					background: linear-gradient(90deg, #18CC84 0%, #16B877 100%);
				}
				
				&.brand {
					background: linear-gradient(90deg, #FF675C 0%, #FF3341 100%);
				}
			}
			
			image {
				width: 248rpx;
				height: 248rpx;
			}
		}
	
		.main-box {
			flex: 1;
			margin-left: 24rpx;
			padding-bottom: 32rpx;
			border-bottom: 2rpx solid #FAFAFA;
			
			.title {
				font-size: 28rpx;
				font-weight: bold;
				color: #1F1F1F;
				line-height: 44rpx;
				vertical-align: middle;
				
				.news {
					display: inline-block;
					margin-right: 4rpx;
					width: 64rpx;
					height: 40rpx;
					line-height: 40rpx;
					font-size: 24rpx;
					font-weight: bold;
					color: #FFFFFF;
					background: linear-gradient(180deg, #FF9D5C 0%, #FF7847 100%);
					border-radius: 20rpx;
					text-align: center;
				}
			}
		
			.sub {
				margin-top: 16rpx;
				font-size: 24rpx;
				font-weight: 400;
				color: #999999;
				line-height: 24rpx;
			}
			
			.type {
				margin-top: 16rpx;
				display: flex;
				
				view {
					margin-left: 16rpx;
					width: 112rpx;
					height: 40rpx;
					line-height: 40rpx;
					border-radius: 4rpx;
					font-size: 24rpx;
					font-weight: 400;
					text-align: center;
					
					&:first-child { margin-left: 0; }
					
					&.jp {
						background: rgba(255,145,71,0.08);
						color: #FF9147;
					}
					
					&.bt {
						background: rgba(255,96,71,0.08);
						color: #FF3D1F;
					}
				}
			}
		
			.mb-bottom {
				margin-top: 24rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				
				.price {
					font-size: 28rpx;
					font-weight: bold;
					color: #FF1F2E;
					vertical-align: text-bottom;
					
					text {
						margin-left: 4rpx;
						font-size: 40rpx;
					}
					
					.note {
						margin-left: 8rpx;
						font-size: 24rpx;
						font-weight: 400;
						color: #FF1F2E;
					}
				}
				
				.tabs {
					display: flex;
					
					.tab {
						margin-left: 8rpx;
						width: 104rpx;
						height: 32rpx;
						line-height: 32rpx;
						background: rgba(110,184,179,0.12);
						border-radius: 4rpx;
						font-size: 24rpx;
						color: #6EB8B3;
						text-align: center;
						
						&:first-child { margin-left: 0; }
					}
				}
			}
		}
	}
</style>